package com.heima.Output;

import java.io.FileOutputStream;
import java.io.IOException;

public class FileOutputStreamDemo04 {
    public static void main(String [] args) throws IOException {
        String path = "day10/src/com/heima/data/test4.txt";
        FileOutputStream fos = new FileOutputStream(path,true); //追加模式
        for (int i = 0; i < 5; i++) {
            fos.write("hello".getBytes());
            fos.write("\r\n".getBytes());
        }
        fos.write("hello11".getBytes());

        fos.close();
    }
}
